﻿<Window x:Class="DynaCAD.TemplateCreator"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Şablon Yönetimi" Height="1024" Width="1280" WindowState="Maximized" Closing="Window_Closing" KeyDown="Window_KeyDown" Icon="dc.ico" >
    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="250*" />
            <ColumnDefinition Width="504*" />
            <ColumnDefinition Width="504*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="50*" />
            <RowDefinition Height="25*" />
            <RowDefinition Height="60" />
            <RowDefinition Height="177*" />
            <RowDefinition Height="683*" />
        </Grid.RowDefinitions>
        <Grid Background="White" Grid.Row="3" Grid.Column="1" Grid.RowSpan="2" ClipToBounds="True" Name="On" MouseLeftButtonDown="StackPanelOnMouseLeftButtonDown" MouseMove="StackPanelOnMouseMove" MouseWheel="StackPanelOnMouseWheel" MouseLeftButtonUp="StackPanelOnMouseLeftButtonUp" MouseLeave="StackPanelOnMouseLeave" >
            <Border BorderThickness="3" BorderBrush="LightGray" Grid.ColumnSpan="3">
                <StackPanel Name="TemplateStackPanelOn" Background="White"  >
                    <Canvas HorizontalAlignment="Left" VerticalAlignment="Top" Name="TemplateCanvasOn"  >

                    </Canvas>
                    <Canvas HorizontalAlignment="Left" VerticalAlignment="Top" Name="TemplatePointsOn" >

                    </Canvas>

                </StackPanel>
            </Border>
        </Grid>
        <Grid Grid.Row="3" Background="White" Grid.Column="2" Grid.RowSpan="2" ClipToBounds="True" Name="Arka"  MouseLeftButtonDown="StackPanelArkaMouseLeftButtonDown" MouseMove="StackPanelArkaMouseMove" MouseWheel="StackPanelArkaMouseWheel" MouseLeftButtonUp="StackPanelArkaMouseLeftButtonUp" MouseLeave="StackPanelArkaMouseLeave" >
            <Border BorderThickness="3" BorderBrush="LightGray" >
                <StackPanel Name="TemplateStackPanelArka" Background="White" >
                    <Canvas HorizontalAlignment="Left" VerticalAlignment="Top" Name="TemplateCanvasArka" >
                    </Canvas>
                    <Canvas HorizontalAlignment="Left" VerticalAlignment="Top" Name="TemplatePointsArka" >
                    </Canvas>
                </StackPanel>
            </Border>
        </Grid>
        <GridSplitter Grid.Row="3" Grid.RowSpan="5" Grid.Column="1" Width="5" />
        <DockPanel Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2">
            <TextBlock Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Text="Şablon İsmi:" Margin="5,3,5,37" FontSize="15" TextAlignment="Center" HorizontalAlignment="Left" />
            <TextBox Name="TemplateName" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Width="239" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5,3,5,0" Height="23" />
        </DockPanel>
        <ToolBar Grid.Row="2" Grid.Column="1" Background="#FFCAE5D7" Height="25" VerticalAlignment="Bottom">
            <Button BorderBrush="AliceBlue" BorderThickness="1" Content="Ön Görünüş Yükle" Click="FrontModelOpenClick" />
            <Button BorderBrush="AliceBlue" BorderThickness="1" Content="Ortala" Click="FronViewClick" />
        </ToolBar>
        <ToolBar Grid.Row="2" Grid.Column="2" Background="#FFCAE5D7" Height="25" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" >
            <Button BorderBrush="AliceBlue" BorderThickness="1" Content="Arka Görünüş Yükle" Click="BackModelOpenClick" />
            <Button BorderBrush="AliceBlue" BorderThickness="1" Content="Ortala" Click="BackViewClick" />
        </ToolBar>
        <StackPanel VerticalAlignment="Top" Orientation="Horizontal" Height="50" Background="#2F869C" Grid.ColumnSpan="3">

            <TextBlock Text="Dynamic CAD" VerticalAlignment="Center" Margin="15,0,5,0" FontSize="30" FontFamily="Calibri" Foreground="#CEF0D4" FontWeight="Bold"/>
            <TextBlock Text="v0.5" VerticalAlignment="Center" Margin="5,0,35,0" FontSize="20" FontFamily="Calibri" Foreground="Yellow" FontStyle="Italic" />
            <TextBlock VerticalAlignment="Center" Margin="10,0,0,0" Name="tbName" Text="{Binding Path=Name}" Foreground="White" />
            
        </StackPanel>
        <ToolBar Grid.Row="1"  VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="25" Background="#FFCAE5D7" Grid.ColumnSpan="3">
            <Menu IsMainMenu="True" VerticalAlignment="Stretch">
                <MenuItem VerticalAlignment="Top" Name="Dosya">
                    <MenuItem.Header>
                        <TextBlock Text="İşlemler" VerticalAlignment="Center" TextAlignment="Center" />
                    </MenuItem.Header>
                    <MenuItem Header="Şablon Aç" Click="TemplateOpenClick" />
                    <MenuItem Header="Şablon Kaydet" Click="TemplateSaveClick" />

                </MenuItem>

            </Menu>
        </ToolBar>
        <TabControl Name="TABS" Grid.Row="2"  HorizontalAlignment="Stretch"  Background="Transparent" TabStripPlacement="Left" Grid.RowSpan="2" SelectionChanged="MainTabSelectionChanged" >
        </TabControl>
        <Border BorderThickness="1" BorderBrush="Black" Grid.Row="4" Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <StackPanel Name="Texts" >
            </StackPanel>
        </Border>
        <GridSplitter Grid.Row="2" Background="Transparent" Width="5" VerticalAlignment="Stretch" Grid.RowSpan="3"></GridSplitter>
        <GridSplitter ResizeDirection="Rows" HorizontalAlignment="Stretch" Background="Transparent" Grid.Row="3" Height="5" VerticalAlignment="Bottom"></GridSplitter>
    </Grid>
</Window>
